from selenium import webdriver
import time

driver = webdriver.Chrome(r'D:\soft\google\chromedriver.exe')

driver.implicitly_wait(5)
driver.get('https://www.baidu.com/')

from selenium.webdriver.common.action_chains import ActionChains

ac = ActionChains(driver)

# 鼠标移动到 元素上
ac.move_to_element(
    driver.find_element_by_css_selector('[name="tj_briicon"]')
).perform()

ac.double_click(driver.find_element_by_css_selector('[name="tj_briicon"]'))\
    .perform()

time.sleep(10)
driver.quit()
